<%@ page language="java" import="java.util.*,com.hs.core.utils.*,com.hs.chd.action.search.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head> 
<%@ include file="../../include.jsp"%> 
<script src='<%=basePath%>thirtpart/jquery/jquery.blockUI.js'></script> 
<script src='<%=basePath%>app/js/hs.search.js'></script> 
<style>.tac{text-align:center}</style>
<script language=JavaScript> 
function datastat(){
	//var win = document.getElementById('resultlist').contentWindow;
	//var allsql = win.document.getElementById('allfullsql').value;
    //openwindow('<%=basePath%>stat/statindex.do?allsql='+encodeURI(allsql),'1280','960','');
	basiclinchuang('','','<%=basePath %>');
}
function datastatadv(){
	//var win = document.getElementById('resultlist').contentWindow;
	//var allsql = win.document.getElementById('allfullsql').value;
    //openwindow('<%=basePath%>stat/statindex.do?allsql='+encodeURI(allsql),'1280','960','');
	advlinchuang('','<%=basePath %>');
}
 
</script>
</head>
<body>
<div class="cont">
	<!--检索--> 
        <div class="sear_tab">
            <div class="tab">
                <span class="curr"><a href="javaScript:generalSearch('','','<%=basePath %>');" style="TEXT-DECORATION:none;">全库基本检索</a></span>
                <span><a href="javaScript:advSearch('','<%=basePath %>');" style="TEXT-DECORATION:none;">全库高级检索</a></span>
            </div>
            <form  id="searchform" name="searchform" method="post"> 
            
            <table class="tablist" width="300" border="0" cellpadding="0" cellspacing="0" style="display:block">
              <tr>
                <td style="padding-left:55px">
                	<label><input name="disnamebasic" type="checkbox" value="中风病" checked="checked" />中风病</label>
                    <label><input name="disnamebasic" type="checkbox" value="冠心病" checked="checked"/>冠心病</label>
                     
                    <select name="startyear" id="startyear">
                        <option value="">不限</option>
                        <%=SearchUtil.getYearSelectStr(false, 20) %>
                    </select> - 
                    <select name="endyear" id="endyear"> 
                          <option value="">不限</option>
                        <%=SearchUtil.getYearSelectStr(false, 20) %>
                    </select> 
                    <select  name='basic_col' id='basic_col' style="width:100px"> 
				            <!-- option value="DISNAME">疾病名称</option-->
				            <option value="ALL">任意字段</option>
				            <option value="TITLE">标题</option> 
			                <option value="KEYWORD">关键词</option>
			                <option value="SUBJECTWORD">主题词</option>
			                <option value="ABSTRACT">摘要/古籍原文</option>
			                <option value="AUTHOR">作者</option>  
			                <option value="PERIODICALNAME">刊名</option>    
							<option value="PERIOD">期</option> 
							<option value="FUNDNAME">基金</option>
							<option value="FUNDTYPE">资助类别</option>
							<option value="PERIODICALNAME">书籍名称</option>
							<option value="BOOKCD">朝代</option>
							<option value="TCMNAME">中医病名</option>
				    </select>
                    <input type="text" name="basic_colvalue" id="basic_colvalue" onkeyup="test(this.id);"   style="width:350px;"/>
                    <!-- &nbsp;&nbsp;<input type="checkbox" value="1" id="issyn"   name="issyn"  />同义词检索-->
                    &nbsp;&nbsp; <select id="basic_special" name="basic_special" style="width:80px">
					     <option value=0>精确</option>
					     <option value=1 selected>模糊</option>
				     </select>
                    &nbsp;&nbsp;<input type="button" class="btn btn-primary" onclick="generalSearch('','','<%=basePath %>');" value="检索" />
                    &nbsp;&nbsp;<input   type="button" class="btn btn-primary" onclick="generalSecondSearch('','<%=basePath %>');" value="二次检索"/>
                    &nbsp;&nbsp;<input   type="button" class="btn btn-primary" onclick="resetAll();" value=" 清 除 "/> 
                    &nbsp;&nbsp;<input   type="button" class="btn btn-orange" onclick="datastat();" value="临床数据统计"/>
                </td>
              </tr>
           </table>
           <table id="txt" class="tablist" border="0" cellpadding="0" cellspacing="0" style="display:none">
            <input id="txt_i" value="1" type="hidden" name="txt_i">
            <input id="txt_c" value="19" type="hidden" name="txt_c">
            <tbody>
           
            <tr id="hidden_logical_txt" style="display:none">
                <td nowrap="true" style="width:60px;">
                    <select id="{key}_logical" name="{key}_logical" style="width:60px">
                        <option value="0" selected="">并且</option>
                        <option value="1">或者</option>
                    </select>
                </td> 
            </tr>
            <tr> 
                <td style="padding-left:55px;" colspan=2 >
                	<label><input name="disname" type="checkbox" value="中风病" checked="checked" />中风病</label>
                    <label><input name="disname" type="checkbox" value="冠心病" checked="checked"/>冠心病</label>
                	 <label><input name="datatype"  type="checkbox" value="1" checked/>中文期刊</label>
                     <label><input name="datatype"  type="checkbox" value="2" checked/>英文期刊</label>
                     <label><input name="datatype"  type="checkbox" value="3" checked/>古籍文献</label>
                    <select name="startyear_adv" id="startyear_adv">
                        <option value="">不限</option>
                        <%=SearchUtil.getYearSelectStr(false, 20) %>
                    </select> - 
                    <select name="endyear_adv" id="endyear_adv"> 
                          <option value="">不限</option>
                        <%=SearchUtil.getYearSelectStr(false, 20) %>
                    </select> 
                </td>
              </tr>
            <tr id="txt_1" >
                 <td nowrap="true"  style="padding-left:100;width:70px"> 
                    <span class="btn_group">
                    	<input type="button" class="add" onclick="AddRowEx('txt','txt_i','txt_c');"/>
                    	<input type="button" class="selete" onclick="DeleteRow('txt','txt_i','txt_c');"/>
                    </span>
                </td>
               <td style="padding-left:0">
                    <select id="txt_1_sel" name="txt_1_sel"   style="width:100px">
                        <option value="TITLE">             标题        </option>
						<option value="PERIODICALNAME">    刊名            </option>
						<option value="AUTHOR">            作者            </option>
						<option value="AUTHORUNIT">        第一作者单位    </option>
						<option value="AUTHORADDRESS">     第一作者通讯地址</option>
						<option value="KEYWORD">           关键词      </option>
						<option value="SUBJECTWORD">       主题词      </option>
						<option value="ABSTRACT">          摘要        </option>
						<option value="DOCUMENTTYPE">      文献类型        </option>
						<option value="CLASSNO">           分类号          </option>
						<option value="FUNDSTR">           资助情况        </option>
						<option value="FUNDTYPE">          资助类别        </option>
						<option value="FUNDNAME">          基金            </option>
						<option value="PERIODICALNAME">          书籍名称        </option>
						<option value="AUTHOR">            著者            </option>
						<option value="BOOKCD">            朝代            </option>
						<option value="TCMNAME">           中医病名        </option>
						<option value="VOLUMESECTION">     卷册章节        </option>
						<option value="ABSTRACT">      古籍原文      </option>
                    </select>
                    <input   value="" id="txt_1_value" name="txt_1_value" size="10" maxlength="120" type="text"  onkeyup="test(this.id);"     style="width:400px;"/>
                     <select id="txt_1_special" name="txt_1_special" onchange="">
                        <option value="1" selected>模糊</option>
                        <option value="0" >精确</option>
                    </select>
                </td>  
            </tr> 
            <tr>
                <td class="searButt" align=right colspan=2>
                    &nbsp;&nbsp;<input type="button" class="btn btn-primary" onclick="advSearch('','<%=basePath %>');" value=" 检 索 "/>&nbsp;
                    &nbsp;&nbsp;<input type="button" class="btn btn-primary" onclick="resetAll();" value=" 清 除 "/>
                    &nbsp;&nbsp;<input   type="button" class="btn btn-orange" onclick="datastatadv();" value="临床数据统计"/>
                 </td>
            </tr>
        </tbody>
      </table>
      
      </form>   
     </div>
    <!--/检索-->
    <!--检索结果-->
    <dl class="deta_sear_menu">
        <dt><span></span>按年度统计</dt>
        <dd>
        	<ul id="yeargroup">
            	<li><div id=messagediv1>数据加载中......</div></li>
               
            </ul>
        </dd>
        <dt><span></span>按期刊统计</dt>
        <dd>
            <ul id="pgroup">
            	<li><div id=messagediv2>数据加载中......</div></li> 
            </ul>
        </dd>
    </dl>
    <div class="iframeWrap">
        <iframe src="<%=basePath %>search/dosearch.do" id="resultlist" frameborder="0" style="width:100%; height:99%" class="iframeStyle"></iframe>
    </div>
  <!--/检索结果-->
   
</div>
</body>
</html>
<script>
loadYearGroupdata('','<%=basePath%>');
loadPenameGroupdata('','<%=basePath%>');
</script>

